package com.sitech.portal.server.service;

import java.util.List;
import java.util.Map;

import com.sitech.ibnms.core.IPage;
import com.sitech.ibnms.core.PageForm;
import com.sitech.portal.system.domain.TblSYS_LOGINMSG;

public interface IPortalService {

	public List findAllPorlets();
	
	/**
	 * 获取用户角色所有panel
	 * @param login_id
	 * @return
	 */
	public List findUserPorlets(String login_id);
	
	public IPage findAllPorletsList(PageForm pageForm);

    public Map findPorletById(String porlet_id);

    public void insertPORLET(Map porlet);

    public void updatePORLET(Map porlet);

    public void deletePORLETById(String porlet_id);

    public List findAllLayouts();

    public Map findLayoutById(String layout_id);

    public List findPorletsByROLE_ID(List<Map> ROLE_IDs);

    public Map findUserSetting(String LOGIN_ID);

    public int updateUserSetting_PORLETS(String LOGIN_ID, String PORLETS);

    public void updateUserSetting_LAYOUT(String LOGIN_ID, String LAYOUT_ID);

    public void updateRoleMapOfPorlet(String PORLET_ID, String[] ROLE_ID);

    public void insertRoleMapOfPorlet(String PORLET_ID, String ROLE_ID);

    public void deleteRoleMapOfPorlet(String PORLET_ID);
    
    public String loadHelperByHelpId(String helpId);
    
    public void updateHelpeInfo(String helpId , String helpMsg);
    
    /**
	 * 获取用户panel，先取用户个性化配置的panel，如果没有，再取用户角色配置的panel
	 * @param user
	 * @return
	 */
	public List findPorletsByUser(TblSYS_LOGINMSG user);
}
